package com.wash.shoes.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wash.shoes.entity.UserBlacklistPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 用户黑名单 Mapper 接口
 * </p>
 *
 * @author wangxy
 * @since 2024-12-25
 */
public interface UserBlackListMapper extends BaseMapper<UserBlacklistPo> {

    /**
     * 获取列表的数据
     *
     * @param page
     * @param userBlacklistPo
     * @return
     */
    List<UserBlacklistPo> pageList(@Param("page") Page page, @Param("userBlacklistPo") UserBlacklistPo userBlacklistPo);


    /**
     * 通过电话号码查询黑名单用户
     *
     * @param phoneNumber
     * @return
     */
    List<UserBlacklistPo> queryBlacklistByPhoneNumber(@Param("phoneNumber") String phoneNumber);
}
